package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class OrderedSetFunctionAggregateFunction implements AggregateFunction {

    private int beginIndex;
    private int endIndex;
    private FilterClause filterClause;
    private OrderedSetFunction orderedSetFunction;

    public OrderedSetFunctionAggregateFunction(int beginIndex, int endIndex, OrderedSetFunction orderedSetFunction, FilterClause filterClause) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.filterClause = filterClause;
        this.orderedSetFunction = orderedSetFunction;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    @Override
    public FilterClause getFilterClause() {
        return filterClause;
    }

    public OrderedSetFunction getOrderedSetFunction() {
        return orderedSetFunction;
    }

}
